package jy.game.components.mod;


import jy.game.BasePojo;
import jy.game.tools.CommonSettings;
import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.Root;

@Root(name = "mod")
public class JyModInfo extends BasePojo {
    @Attribute public String  key;
    @Attribute public String  name;
    @Attribute public String  author;
    @Attribute public String  version;
    @Attribute public String  desc;
    @Attribute public String  size;
    @Attribute public String  date;
    @Attribute public String  dir;
    @Attribute public boolean enc;
    @Attribute public boolean zip;

    // (get) Token: 0x06000023 RID: 35 RVA: 0x000023BB File Offset: 0x000005BB
    public /*override*/ String PK() {
        {
            return this.key;
        }
    }

    // (get) Token: 0x06000024 RID: 36 RVA: 0x000023C3 File Offset: 0x000005C3
    // [XmlIgnore]
    public String localXmlPath() {
        {
            return CommonSettings.persistentDataPath + "/modcache/" + this.key + ".xml";
        }
    }

    // (get) Token: 0x06000025 RID: 37 RVA: 0x000023DF File Offset: 0x000005DF
    // [XmlIgnore]
    public String localDirPath() {
        {
            return CommonSettings.persistentDataPath + "/modcache/" + this.key + "/";
        }
    }
}